import 'package:flutter/material.dart';
import 'package:wechat/discovery/discovery_cell.dart';

class DiscoveryPage extends StatefulWidget {
  const DiscoveryPage({super.key});

  @override
  State<DiscoveryPage> createState() => _DiscoveryPageState();
}

class _DiscoveryPageState extends State<DiscoveryPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: const Color.fromRGBO(240, 240, 240, 1),
        child: ListView(
          children: const [
            DiscoveryCell(
              title: '朋友圈',
              imageName: 'images/friend_circle.png',
            ),
            SizedBox(height: 10),
            DiscoveryCell(
              title: '扫一扫 ',
              imageName: 'images/scan.png',
              showBorder: true,
            ),
            DiscoveryCell(
              title: '摇一摇',
              imageName: 'images/shake.png',
            ),
            SizedBox(height: 10),
            DiscoveryCell(
              title: '看一看',
              imageName: 'images/look.png',
              showBorder: true,
            ),
            DiscoveryCell(title: '搜一搜', imageName: 'images/search.png'),
            SizedBox(height: 10),
            DiscoveryCell(title: '附近的人', imageName: 'images/near_people.png'),
            SizedBox(height: 10),
            DiscoveryCell(
                title: '购物',
                imageName: 'images/shopping.png',
                showBorder: true),
            DiscoveryCell(title: '游戏', imageName: 'images/game.png'),
            SizedBox(height: 10),
            DiscoveryCell(title: '小程序', imageName: 'images/mini_program.png'),
          ],
        ),
      ),
    );
  }
}
